package com.woniuxy.core.exception.stallException;

public enum StallExceptionCode {
    STALL_CERTIFIED(2012,"物业自有车位，业主不可上架"),
    CHOOSE_TIME_FIRST(2011,"开始时间和结束时间都要选择"),

    STALL_CHECK_NO_HAVE(2010,"没有该申请单"),
    STALL_RENT_TIME_NOT_HAVE(2009,"该车位没有设置出租时间段"),
    STALL_STATE_NOT_HAVE(2008,"不存在的车位状态"),
    STALL_UPING(2007,"车位上架中，请先下架"),
    STALL_NOT_CHECK(2006,"车位未审核通过"),
    STALL_NONE_OR_CHECKED(2005,"有车位不存在或已经审核"),
    STALL_ALREADY_HAVE(2004,"车位已经存在"),

    STALL_CANT_USE(2001,"车位在该时间段不可用"),
    STALL_NOT_EXIST(2002,"不存在该车位"),
    STALL_IS_DOWN(2003,"车位暂未上架");


    private Integer code;

    private String message;

    StallExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
